package aiku.numericalcontroloa.Model.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @TableName purchase_receipts
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="purchase_receipts")
@Data
public class PurchaseReceipts extends BaseEntity implements Serializable {

    /**
     * 采购订单ID
     */
    @TableField(value = "purchase_orders_id")
    private String purchaseOrdersId;

    /**
     * 入库日期
     */
    @TableField(value = "receipts_time")
    private Date receiptsTime;

    /**
     * 申请用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 审核人id
     */
    @TableField(value = "management_id")
    private String managementId;

    /**
     * 审核时间
     */
    @TableField(value = "apply_time")
    private Date applyTime;

    /**
     * 入库状态（0已入库，1待审核，2拒绝入库）
     */
    @TableField(value = "receipts_status")
    private String receiptsStatus;

    /**
     * 仓库设备id
     */
    private String warehouseDevId;

    /**
     * 采购产品ID (外键，关联到产品表)
     */
    private String productsId;

    /**
     * 入库数量
     */
    private Float number;

    /**
     * 入库单价
     */
    private BigDecimal price;

    /**
     * 是否是成品
     */
    private Integer isProduct;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}